﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BuildPlannerLib
{
    public static class TimeConvert
    {
        public static int ToInt(TimeSpan time)
        {
            return Convert.ToInt32(time.TotalMilliseconds / 10);
        }

        public static TimeSpan ToTimeSpan(int time)
        {
            return TimeSpan.FromMilliseconds(time * 10);
        }
    }
}
